package de.hsw.facebook.model.rowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import de.hsw.facbook.model.entities.Newsfeed;


public class NewsfeedRowMapper {
	private Log logger = LogFactory.getLog(NewsfeedRowMapper.class);
	
	public Newsfeed mapNewsfeed(ResultSet rs) throws SQLException{		
		logger.debug("-> entering mapAccount");
		
		//Newsfeed-Objekt erstellen
		Newsfeed newsfeed = new Newsfeed();
		newsfeed.setNewsfeedID(rs.getInt("newsfeedID"));		
		newsfeed.setGroupID(rs.getInt("groupID"));
		newsfeed.setAccountID(rs.getInt("accountID"));
		
		return newsfeed;
	}
}
